#continue使用

'''
i=0
while i<50:
    if i%10==4 or i//10==4:
        i+=1
        continue
        
    print(i)
    i+=1
'''

ss = ['啊','波','磁','的','额','佛','个']

#continue的使用 (1)
'''
i = 0
while i<len(ss):
    if ss[i] == '的':
        i+=1
        continue
    print(ss[i])
    i+=1
'''

#continue的使用(2)
'''
for one in ss:
    if one=='的':
        continue
    print(one)

'''



#break 和continue的区别在于


#continue 跳过本次循环
#break 跳出整个循环

#break的使用
i = 1
while i<10:
    if i == 3:
        i+=1
        continue
    print(i)
    i+=1

#1 2 4 5 6 7 8 9

print('\n',end='')
print('\n',end='')
print('\n',end='')


#break的使用

i = 1
while i<10:
    if i == 3:
        i+=1
        break
    print(i)
    i+=1

#1 2






















    
